package Views;

import Model.Grid;
import java.awt.Graphics;
import java.util.Observable;
import java.util.Observer;
import javax.swing.JPanel;
/**
 * 
 * @author KOK Leng-Steven & RIEU Simon
 */
public abstract class GridView extends JPanel implements Observer
{    
    //The Model
    private Grid grid;
    protected int size=20;
    protected DrawableForm[][] strategies;

    public  GridView(Grid grid)
    {
        //GridView Observes the model grid
        this.grid=grid;
        this.grid.addObserver(this);
    }
    
    @Override
    public abstract void update(Observable o, Object o1); 
    
    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
    }
}
